using AiQiuQuan.Sport.Model.Enums;
using System.ComponentModel.DataAnnotations;

namespace AiQiuQuan.Sport.Model.Models
{
    /// <summary>
    /// 修改教练dto
    /// </summary>
    public class CoacherUpdateDto
    {
        /// <summary>
        /// ID
        /// </summary>
        [Required]
        public Guid ID { get; set; }

        /// <summary>
        /// 1普通教练、2总教练
        /// </summary>
        [Required(ErrorMessage = "1普通教练、2总教练必填")]
        [EnumDataType(typeof(CoacherTypeEnum))]
        public CoacherTypeEnum Type { get; set; }

        /// <summary>
        /// 图片
        /// </summary>
        public string? PicUrl { get; set; }

        /// <summary>
        /// 介绍
        /// </summary>
        public CoacherIntroductionDto? Introduction { get; set; }

        /// <summary>
        /// 是否推荐
        /// </summary>
        [Required]
        public bool IsRecommend { get; set; }

        /// <summary>
        /// 是否认证
        /// </summary>
        [Required]
        public bool IsCertificated { get; set; }

        /// <summary>
        /// 是否展示
        /// </summary>
        [Required]
        public bool IsShow { get; set; }

        /// <summary>
        /// 场馆列表
        /// </summary>
        [Required]
        [MinLength(1)]
        public List<CoacherVenueAddDetail> VenueList { get; set; }
    }
}
